using System;
using System.Collections.Generic;
using PCC.App;
using PCC.CQRS;
using PCC.Receiver.Database;

namespace PCC.Command.User
{
    public class Approve : CommandBase
    {
        private Approve(IEnumerable<IReceiver> receivers)
            : base(receivers)
        { }

        public static Approve GetCommand(DataManager dataManager, Guid Id)
        {
            return
                new Approve(
                    new IReceiver[]
                        {
                            new ApproveUser(dataManager, Id.ToString())
                        }
                    );
        }
    }
}